import request from '@/utils/request'

// 查询法律法规列表
export function listFlfgk(query) {
  return request({
    url: '/anquan/flfgk/list',
    method: 'get',
    params: query
  })
}

// 查询法律法规详细
export function getFlfgk(id) {
  return request({
    url: '/anquan/flfgk/' + id,
    method: 'get'
  })
}

// 新增法律法规
export function addFlfgk(data) {
  return request({
    url: '/anquan/flfgk',
    method: 'post',
    data: data
  })
}

// 修改法律法规
export function updateFlfgk(data) {
  return request({
    url: '/anquan/flfgk',
    method: 'put',
    data: data
  })
}

// 删除法律法规
export function delFlfgk(id) {
  return request({
    url: '/anquan/flfgk/' + id,
    method: 'delete'
  })
}

// 导出法律法规
export function exportFlfgk(query) {
  return request({
    url: '/anquan/flfgk/export',
    method: 'get',
    params: query
  })
}